package com.example.salesservice.mapper;

import com.example.salesservice.entity.Salesback;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface SalesbackImp {
	//查询所有退货信息（或根据条件进行筛选）
	public List<Salesback> select(@Param("customerid")Integer customerid, @Param("goodsid")Integer goodsid, @Param("index")Integer index, @Param("limit")Integer limit);
	//根据id 删除
	public void delete(Integer id);
	//添加
	public void insert(@Param("customerid")Integer customerid,@Param("paytype")String paytype,@Param("salesbacktime")Date salesbacktime,
			@Param("salebackprice")Double salebackprice,@Param("operateperson")String operateperson,
			@Param("number")Integer number,@Param("remark")String remark,@Param("goodsid")Integer goodsid);
}
